package cn.edu.zust.userservice.mapper;

import Video.Dto.Video;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import pojo.Result;

import java.util.List;

@FeignClient(value = "video-service",path = "/video")
@Mapper
public interface VideoClient {
    @GetMapping("/all-videos")
    Result<List<Video>> getAllVideos();
}
